<?php

require_once dirname(__FILE__) . '/../lib/cuentasCorrientesGeneratorConfiguration.class.php';
require_once dirname(__FILE__) . '/../lib/cuentasCorrientesGeneratorHelper.class.php';

/**
 * cuentasCorrientes actions.
 *
 * @package    ERP
 * @subpackage cuentasCorrientes
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class cuentasCorrientesActions extends autoCuentasCorrientesActions {

    
      
    public function executeListRegistrarPago(sfWebRequest $request) {
        $this->forward('pagos', 'new');
    }
    
    public function executeListVerPagos(sfWebRequest $request) {
        $this->forward('pagos', 'index');
    }

    public function executeNew(sfWebRequest $request) {
        $this->form = $this->configuration->getForm();
        $this->form->setDefault('cliente_id', $this->getRequest()->getParameter('clienteID'));
        $this->cuenta_corriente = $this->form->getObject();
    }

}
